package com.ruoyi.api.service.impl;

import com.ruoyi.api.domain.GuidDayEntity;
import com.ruoyi.api.domain.GuidDayScenicEntity;
import com.ruoyi.api.domain.GuidEntity;
import com.ruoyi.api.repository.GuidDayRepository;
import com.ruoyi.api.service.GuidDayService;
import com.ruoyi.api.service.UserGuidService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class GuidDayServiceImpl implements GuidDayService {

    @Autowired
    private MongoTemplate mongoTemplate;
    @Autowired
    private GuidDayRepository guidDayRepository;
    @Override
    public GuidDayEntity save(GuidDayEntity guidDayEntity) {
      return   guidDayRepository.save(guidDayEntity);
    }

    @Override
    public void deleteByGuidId(String id) {
        guidDayRepository.deleteByGuidId(id);
    }

    @Override
    public List<GuidDayEntity> getInfoByGuidId(String id) {
       return guidDayRepository.getInfoByGuidId(id);
    }
}
